﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace COCBot
{
    public static class Bluestacks
    {

        private static System.IntPtr hWnd;

        private const int paddingX = 5;
        private const int paddinyY = 50;

        internal static Bitmap GetCurrentScreen()
        {
            hWnd = Win32.FindWindow("WindowsForms10.Window.8.app.0.33c0d9d", "BlueStacks App Player");

            Rectangle rect = Win32.GetWindowRectangle(hWnd);

            return Win32.CaptureWindow(hWnd, 0, 0, rect.Width - paddingX, rect.Height - paddinyY);
        }

    }
}
